<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>tests/mctest.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/tests.html'>tests</a>/mctest.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/tests.html'>tests</a>/mctest.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 tests/mctest.h'  /> */</em>
<hr />
<h2 class='header'><a href='../J/mctest.h.html' title='Multiple included from 50 places.'>INCLUDED FROM</a></h2>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#ifndef</em> <a href='../S/tests--mctest.h.html#L2' title='Defined at 2 in tests/mctest.h.'>MC__TEST</a>
<a id='L2' name='L2'></a>   2 <em class='sharp'>#define</em> <a href='../S/tests--mctest.h.html#L1' title='Referred from 1 in tests/mctest.h.'>MC__TEST</a>
<a id='L3' name='L3'></a>   3 
<a id='L4' name='L4'></a>   4 <em class='sharp'>#include</em> &lt;config.h&gt;
<a id='L5' name='L5'></a>   5 <em class='sharp'>#include</em> &lt;stdlib.h&gt;
<a id='L6' name='L6'></a>   6 <em class='sharp'>#include</em> &lt;<a href='lib--widget--check.h.html'>check.h</a>&gt;
<a id='L7' name='L7'></a>   7 
<a id='L8' name='L8'></a>   8 <em class='sharp'>#include</em> "<a href='lib--global.h.html'>lib/global.h</a>"
<a id='L9' name='L9'></a>   9 
<a id='L10' name='L10'></a>  10 <em class='comment'>/*** typedefs(not structures) and defined constants **********************************************/</em>
<a id='L11' name='L11'></a>  11 
<a id='L12' name='L12'></a>  12 <em class='sharp'>#define</em> <a href='../R/mctest_add_parameterized_test.html' title='Multiple referred from 52 places.'>mctest_add_parameterized_test</a>(<a href='../Y/tc_core.html' title='Multiple used in 228 places.'>tc_core</a>, <a href='../Y/test_func.html' title='Multiple used in 2 places.'>test_func</a>, <a href='../Y/test_data_source.html' title='Multiple used in 2 places.'>test_data_source</a>) <em class='brace'>{</em>\
<a id='L13' name='L13'></a>  13     <a href='../Y/tcase_add_loop_test.html' title='Multiple used in 4 places.'>tcase_add_loop_test</a> (<a href='../Y/tc_core.html' title='Multiple used in 228 places.'>tc_core</a>, <a href='../Y/test_func.html' title='Multiple used in 2 places.'>test_func</a>, 0, <a href='../Y/G_N_ELEMENTS.html' title='Multiple used in 28 places.'>G_N_ELEMENTS</a> (<a href='../Y/test_data_source.html' title='Multiple used in 2 places.'>test_data_source</a>)); \
<a id='L14' name='L14'></a>  14 <em class='brace'>}</em>
<a id='L15' name='L15'></a>  15 
<a id='L16' name='L16'></a>  16 <em class='sharp'>#define</em> <a href='../R/mctest_assert_str_eq.html' title='Multiple referred from 100 places.'>mctest_assert_str_eq</a>(<a href='../Y/actual_result.html' title='Multiple used in 83 places.'>actual_result</a>, <a href='../Y/etalon_result.html' title='Multiple used in 6 places.'>etalon_result</a>) <em class='brace'>{</em> \
<a id='L17' name='L17'></a>  17     <a href='../Y/g_assert_cmpstr.html' title='Multiple used in 2 places.'>g_assert_cmpstr</a> (<a href='../Y/actual_result.html' title='Multiple used in 83 places.'>actual_result</a>, ==, <a href='../Y/etalon_result.html' title='Multiple used in 6 places.'>etalon_result</a>); \
<a id='L18' name='L18'></a>  18 <em class='brace'>}</em>
<a id='L19' name='L19'></a>  19 
<a id='L20' name='L20'></a>  20 <em class='sharp'>#define</em> <a href='../R/mctest_assert_int_eq.html' title='Multiple referred from 85 places.'>mctest_assert_int_eq</a>(<a href='../Y/actual_result.html' title='Multiple used in 83 places.'>actual_result</a>, <a href='../Y/etalon_result.html' title='Multiple used in 6 places.'>etalon_result</a>) <em class='brace'>{</em> \
<a id='L21' name='L21'></a>  21     <a href='../Y/ck_assert_int_eq.html' title='Multiple used in 10 places.'>ck_assert_int_eq</a> (<a href='../Y/actual_result.html' title='Multiple used in 83 places.'>actual_result</a>, <a href='../Y/etalon_result.html' title='Multiple used in 6 places.'>etalon_result</a>); \
<a id='L22' name='L22'></a>  22 <em class='brace'>}</em>
<a id='L23' name='L23'></a>  23 
<a id='L24' name='L24'></a>  24 <em class='sharp'>#define</em> <a href='../S/tests--lib--vfs--tempdir.c.html#L107' title='Referred from 107 in tests/lib/vfs/tempdir.c.'>mctest_assert_int_ne</a>(<a href='../Y/actual_result.html' title='Multiple used in 83 places.'>actual_result</a>, <a href='../Y/etalon_result.html' title='Multiple used in 6 places.'>etalon_result</a>) <em class='brace'>{</em> \
<a id='L25' name='L25'></a>  25     ck_assert_int_ne (<a href='../Y/actual_result.html' title='Multiple used in 83 places.'>actual_result</a>, <a href='../Y/etalon_result.html' title='Multiple used in 6 places.'>etalon_result</a>); \
<a id='L26' name='L26'></a>  26 <em class='brace'>}</em>
<a id='L27' name='L27'></a>  27 
<a id='L28' name='L28'></a>  28 <em class='sharp'>#define</em> <a href='../R/mctest_assert_ptr_eq.html' title='Multiple referred from 6 places.'>mctest_assert_ptr_eq</a>(<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>, <a href='../Y/etalon_pointer.html' title='Multiple used in 6 places.'>etalon_pointer</a>) <em class='brace'>{</em> \
<a id='L29' name='L29'></a>  29     <a href='../Y/ck_assert_msg.html' title='Multiple used in 6 places.'>ck_assert_msg</a> ( <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> == <a href='../Y/etalon_pointer.html' title='Multiple used in 6 places.'>etalon_pointer</a>, \
<a id='L30' name='L30'></a>  30         "%s(%p) pointer should be equal to %s(%p)\n", \
<a id='L31' name='L31'></a>  31         #<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>, <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>, #<a href='../Y/etalon_pointer.html' title='Multiple used in 6 places.'>etalon_pointer</a> , <a href='../Y/etalon_pointer.html' title='Multiple used in 6 places.'>etalon_pointer</a> \
<a id='L32' name='L32'></a>  32     );\
<a id='L33' name='L33'></a>  33 <em class='brace'>}</em>
<a id='L34' name='L34'></a>  34 
<a id='L35' name='L35'></a>  35 <em class='sharp'>#define</em> <a href='../R/mctest_assert_ptr_ne.html' title='Multiple referred from 4 places.'>mctest_assert_ptr_ne</a>(<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>, <a href='../Y/etalon_pointer.html' title='Multiple used in 6 places.'>etalon_pointer</a>) <em class='brace'>{</em> \
<a id='L36' name='L36'></a>  36     <a href='../Y/ck_assert_msg.html' title='Multiple used in 6 places.'>ck_assert_msg</a> ( <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> != <a href='../Y/etalon_pointer.html' title='Multiple used in 6 places.'>etalon_pointer</a>, \
<a id='L37' name='L37'></a>  37         "%s(%p) pointer should not be equal to %s(%p)\n", \
<a id='L38' name='L38'></a>  38         #<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>, <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>, #<a href='../Y/etalon_pointer.html' title='Multiple used in 6 places.'>etalon_pointer</a> , <a href='../Y/etalon_pointer.html' title='Multiple used in 6 places.'>etalon_pointer</a> \
<a id='L39' name='L39'></a>  39     );\
<a id='L40' name='L40'></a>  40 <em class='brace'>}</em>
<a id='L41' name='L41'></a>  41 
<a id='L42' name='L42'></a>  42 <em class='sharp'>#define</em> <a href='../R/mctest_assert_null.html' title='Multiple referred from 2 places.'>mctest_assert_null</a>(<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>) <em class='brace'>{</em> \
<a id='L43' name='L43'></a>  43     <a href='../Y/ck_assert_msg.html' title='Multiple used in 6 places.'>ck_assert_msg</a>( \
<a id='L44' name='L44'></a>  44         (<strong class='reserved'>void</strong> *) <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> == <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a>, \
<a id='L45' name='L45'></a>  45         "%s(%p) variable should be NULL", #<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>, <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> \
<a id='L46' name='L46'></a>  46     ); \
<a id='L47' name='L47'></a>  47 <em class='brace'>}</em>
<a id='L48' name='L48'></a>  48 
<a id='L49' name='L49'></a>  49 <em class='sharp'>#define</em> <a href='../R/mctest_assert_not_null.html' title='Multiple referred from 3 places.'>mctest_assert_not_null</a>(<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>) <em class='brace'>{</em> \
<a id='L50' name='L50'></a>  50     <a href='../Y/ck_assert_msg.html' title='Multiple used in 6 places.'>ck_assert_msg</a>( \
<a id='L51' name='L51'></a>  51         (<strong class='reserved'>void</strong> *) <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> != <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a>, \
<a id='L52' name='L52'></a>  52         "%s(nil) variable should not be NULL", #<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> \
<a id='L53' name='L53'></a>  53     ); \
<a id='L54' name='L54'></a>  54 <em class='brace'>}</em>
<a id='L55' name='L55'></a>  55 
<a id='L56' name='L56'></a>  56 <em class='sharp'>#define</em> mctest_assert_true(<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>) <em class='brace'>{</em> \
<a id='L57' name='L57'></a>  57     <a href='../Y/ck_assert_msg.html' title='Multiple used in 6 places.'>ck_assert_msg</a>( \
<a id='L58' name='L58'></a>  58         (<strong class='reserved'>int</strong>) <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> != 0, \
<a id='L59' name='L59'></a>  59         "%s variable should be TRUE", #<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> \
<a id='L60' name='L60'></a>  60     ); \
<a id='L61' name='L61'></a>  61 <em class='brace'>}</em>
<a id='L62' name='L62'></a>  62 
<a id='L63' name='L63'></a>  63 <em class='sharp'>#define</em> mctest_assert_false(<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a>) <em class='brace'>{</em> \
<a id='L64' name='L64'></a>  64     <a href='../Y/ck_assert_msg.html' title='Multiple used in 6 places.'>ck_assert_msg</a>( \
<a id='L65' name='L65'></a>  65         (<strong class='reserved'>int</strong>) <a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> == 0, \
<a id='L66' name='L66'></a>  66         "%s variable should be TRUE", #<a href='../Y/actual_pointer.html' title='Multiple used in 18 places.'>actual_pointer</a> \
<a id='L67' name='L67'></a>  67     ); \
<a id='L68' name='L68'></a>  68 <em class='brace'>}</em>
<a id='L69' name='L69'></a>  69 
<a id='L70' name='L70'></a>  70 <em class='comment'>/**</em>
<a id='L71' name='L71'></a>  71 <em class='comment'> * Define header for a parameterized test.</em>
<a id='L72' name='L72'></a>  72 <em class='comment'> * Declare 'data' variable for access to the parameters in current iteration</em>
<a id='L73' name='L73'></a>  73 <em class='comment'> */</em>
<a id='L74' name='L74'></a>  74 <em class='sharp'>#define</em> START_PARAMETRIZED_TEST(name_test, struct_name) <a href='../D/START_TEST.html' title='Multiple defined in 30 places.'>START_TEST</a> (name_test) <em class='brace'>{</em> <strong class='reserved'>const</strong> <strong class='reserved'>struct</strong> struct_name *<a href='../Y/data.html' title='Multiple used in 912 places.'>data</a> = &amp;struct_name[<a href='../Y/_i.html' title='Multiple used in 17 places.'>_i</a>];
<a id='L75' name='L75'></a>  75 
<a id='L76' name='L76'></a>  76 <em class='comment'>/**</em>
<a id='L77' name='L77'></a>  77 <em class='comment'> * Define footer for a parameterized test.</em>
<a id='L78' name='L78'></a>  78 <em class='comment'> */</em>
<a id='L79' name='L79'></a>  79 <em class='sharp'>#define</em> <a href='../R/END_PARAMETRIZED_TEST.html' title='Multiple referred from 50 places.'>END_PARAMETRIZED_TEST</a> <em class='brace'>}</em> <a href='../Y/END_TEST.html' title='Multiple used in 31 places.'>END_TEST</a>
<a id='L80' name='L80'></a>  80 
<a id='L81' name='L81'></a>  81 <em class='comment'>/*** enums ***************************************************************************************/</em>
<a id='L82' name='L82'></a>  82 
<a id='L83' name='L83'></a>  83 <em class='comment'>/*** structures declarations (and typedefs of structures)*****************************************/</em>
<a id='L84' name='L84'></a>  84 
<a id='L85' name='L85'></a>  85 <em class='comment'>/*** global variables defined in .c file *********************************************************/</em>
<a id='L86' name='L86'></a>  86 
<a id='L87' name='L87'></a>  87 <em class='comment'>/*** declarations of public functions ************************************************************/</em>
<a id='L88' name='L88'></a>  88 
<a id='L89' name='L89'></a>  89 <em class='comment'>/*** inline functions ****************************************************************************/</em>
<a id='L90' name='L90'></a>  90 
<a id='L91' name='L91'></a>  91 <em class='sharp'>#endif</em> <em class='comment'>/* MC__TEST */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+91 tests/mctest.h'  /> */</em>
</body>
</html>
